-- GENERATED SPELL FOR [Wailing Guardsman] --


function spell0_3877(pUnit, Event) --@Screams of the Past,Self--
pUnit:FullCastSpellOnTarget(7074,pUnit)
pUnit:RegisterEvent('Sorts_3877', 5000, 1)
end

function Sorts_3877(pUnit, Event)
local choix_sorts_3877 = math.random(0, 0)
if choix_sorts_3877 == 0 then
pUnit:RegisterEvent('spell0_3877', 1, 1)
end
end

function mob3877_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3877', math.random(1500, 3000), 1)
end

function mob3877_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3877_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3877_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3877, 1, 'mob3877_Action')
RegisterUnitEvent(3877, 2, 'mob3877_Leave')
RegisterUnitEvent(3877, 3, 'mob3877_Kill')
RegisterUnitEvent(3877, 4, 'mob3877_Die')
